<?php
/*$con=mysqli_connect("localhost","root","root","gwc");
//获取商品
$num = mysqli_query($con,"select * from product ");
$products=mysqli_fetch_all($num,MYSQLI_ASSOC);
//删除商品
if(isset($_GET["del_id"])){
    if($_GET["del_id"]==0){
        mysqli_query($con,"delete from product");
    }else{
        mysqli_query($con,"delete from product where id=".$_GET["del_id"]);
    }
    header("Location: " . $_SERVER['PHP_SELF']);
//    echo"<script>
//    window.location.reload();
//    </script>";
}
mysqli_close($con);*/
?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>登录页</title>

    <script type="text/javascript" src="js/jquery-3.7.1.min.js"></script>
    <style>
        body {
            margin: 0;
            min-height: 100vh;
            position: relative; /* 作为定位参考 */
            background-color: #f0f0f0;
        }
        .login{
            width: 700px;
            height:400px;
            border:1px solid black;
            text-align: center;
            position: absolute;
            top:0;
            left:0;
            right: 0;
            bottom: 0;
            margin: auto;
        }
        .ltext{
            width: 700px;
            height:150px;
            line-height: 150px;
            font-size: 60px;
        }
        .user,.pwd{
            width: 700px;
            height:100px;
            line-height: 100px;
            font-size: 40px;
        }
        input{
            font-size: 40px;
        }
        .btn{
            width:100px;
            height: 60px;
            font-size: 40px;
        }
        /*{
            width: 700px;
            height:100px;
            line-height: 100px;
            font-size: 40px;
        }*/
    </style>

</head>
<body>
    <div class="login">
        <form action="/cs1/p7/car.php" method="post">
            <div class="user">用户名：<input type="text" name="username"></div>
            <div class="pwd">密码：<input type="password" name="password"></div>
            <div class="ltext"><button type="submit" class="btn">登录</button></div>
        </form>
    </div>
</body>
</html>